﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.MEGA
{
    /// <summary>
    /// 叶片管理
    /// </summary>
    [Table("MEGA_LeafBlade")]
    public class MEGA_LeafBlade
    {

        /// <summary>
        /// 乐观锁
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public String Editor { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? EditTime { get; set; }

        /// <summary>
        /// 叶片编号  叶片首字母缩写大写+8位数字，YP12345678
        /// </summary>
        public String Code { get; set; }

        /// <summary>
        /// 叶片名称
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 叶片规格
        /// </summary>
        public String Spec { get; set; }

        /// <summary>
        /// 叶片批次
        /// </summary>
        public String Batch { get; set; }

        /// <summary>
        /// 叶片长度
        /// </summary>
        public String Length { get; set; }

        /// <summary>
        /// 叶片图片
        /// </summary>
        public String Image { get; set; }

        /// <summary>
        /// 叶片简介
        /// </summary>
        public String Describe { get; set; }

        /// <summary>
        /// 加工时间
        /// </summary>
        public String JGTime { get; set; }

        /// <summary>
        /// 起始时间
        /// </summary>
        public String StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public String EndTime { get; set; }

        /// <summary>
        /// 行政区划id
        /// </summary>
        public String AreaId { get; set; }

        /// <summary>
        /// 行政区划名称
        /// </summary>
        public String AreaName { get; set; }

        /// <summary>
        /// 叶片状态;0未加工、1正在加工、2加工完成
        /// </summary>
        public Int32? State { get; set; } = 0;

        /// <summary>
        /// 加工厂Id
        /// </summary>
        public String FactoryId { get; set; }

        /// <summary>
        /// 加工厂名称
        /// </summary>
        public String FactoryName { get; set; }

        /// <summary>
        /// 材料Id
        /// </summary>
        public String MaterialId { get; set; }

        /// <summary>
        /// 材料名称
        /// </summary>
        public String MaterialName { get; set; }

        /// <summary>
        /// 加工人Id
        /// </summary>
        public String PeopleId { get; set; }

        /// <summary>
        /// 加工人姓名
        /// </summary>
        public String PeopleName { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Note { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [NotMapped]
        public String Num { get; set; }

    }
}